<template>
  <view class="content">
		<div>{{datas.toFixed(2)}}</div>
  </view>
</template>

<script>
import s from "../../config/view";
import t from "../../api/http";
import { store } from "../../store/index";
import aMap from "../../config/qqmap-wx-jssdk.min";
export default {
  data() {
    return {
      title: "Hello",
			datas:123,
      routeInfo: ""
    };
  },
  onLoad() {
    wx.getLocation({
      type: "gcj02",
      success: res => {
        //   console.log(res)
      }
    });
    let map = new aMap({
      key: "LJXBZ-4BIK6-WOKS7-MCAF3-XNHHS-56FKQ"
    });
    map.reverseGeocoder({
      get_poi: 1,
      poi_options: "address_format=short",
      location: {
        latitude: 22.553568,
        longitude: 114.117267
      },
      success(res) {
        console.log(res);
      },
      fail(res) {
        console.log(res);
      }
    });
    map.getCityList({
      success(res) {
        console.log("全国城市", res.result[0]);
        console.log("全国省市", res.result[1]);
        console.log("全国区县", res.result[2]);
      }
    });
  },
  methods: {}
};
</script>

<style lang='less'>
map {
  width: 100%;
  height: 400upx;
}
</style>
